import numpy as np
import os
import skimage.io as io
from data_process import read_dcm,bool_label_path



def show_data(pred,label):
    assert len(pred.shape) == 2,'the pred and label to show should be 2 dims'
    pred = pred[0]
    label = label[0]
    pred[pred  == 1] =255
    label[label == 1] =255
    image_label = np.concatenate((pred,label),1)
    io.imshow(image_label)
    io.show()

if __name__ == '__main__':
    image = np.random.randn(1,512,512)
    label = np.random.randn(1,512,512)
    show_data(image,label)